#ifndef NOISEPLAYER_HPP_
#define NOISEPLAYER_HPP_

#include <windows.h>
#include <cstdlib>
#include <ctime>
#include "WaveGenerator.hpp"
#include "Resources.h"
#pragma comment(lib, "winmm")

class NoisePlayer
{
private:
  HMODULE m_module;
  bool m_playing;
  WaveGenerator* m_waveGenerator;
  int m_sampleRate;
  short m_amplitude;

public:
  NoisePlayer();

  void SetAmplitude(short amplitude);
  bool StartPlaying();
  bool StopPlaying();

protected:
  void GenerateSamples();
};

#endif